#include "stdafx.h"
#include "ckCheckProjectManagerAccess.h"
#include "ckCheckProjectManagerMySQL.h"
#include "ckCheckProjectManagerFactory.h"

namespace ck
{
	CheckProjectManagerFactory::CheckProjectManagerFactory()
	{
	}


	CheckProjectManagerFactory::~CheckProjectManagerFactory()
	{
	}

	CheckProjectManagerFactory* CheckProjectManagerFactory::GetInstance()
	{
		static CheckProjectManagerFactory g_checkCaseManager;
		return &g_checkCaseManager;
	}

	CheckProjectManager* CheckProjectManagerFactory::GetCheckProjectManager(ckDbType type)
	{
		CheckProjectManager* pManager = NULL;
		switch (type)
		{
		case ckDbAccess:
		{
			static CheckProjectManagerAccess g_checkCaseAcess;
			CheckProjectManager::m_pInstance = &g_checkCaseAcess;

		}
		break;
		case ckDbMySQL:
		{
			static CheckProjectManagerMySQL g_checkCaseMySQL;
			CheckProjectManager::m_pInstance = &g_checkCaseMySQL;
		}
		break;
		case ckDbOracle:
			break;
		}

		return CheckProjectManager::GetInstance();
	}
}
